<%--사용안하는 페이지임 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="script/sms_riskI_script.js"></script>
<script type="text/javascript" src="script/sms_util_script.js"></script>
<link href="reset.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<!--말 줄임 css(모든 브라우저 적용)-->
<style type="text/css">
.ellipsis{
	white-space:nowrap;
	text-overflow:ellipsis;		/* IE, Safari */
	-o-text-overflow:ellipsis;		/* Opera under 10.7 */
	overflow:hidden;			/* "overflow" value must be different from "visible" */ 
	-moz-binding: url('ellipsis.xml#ellipsis');
}
</style>


<script type="text/javascript">
function winClose(){
	window.close();
}
</script>
</head>
<body>
<c:if test="${sessionScope.USER_ID==null}">
		<script type="text/javascript">
			alert("연결이 끊어졌습니다. 다시 로그인 해주시기 바랍니다");
			window.close();
		</script>	
</c:if>
<div class="box">
        <div class="box-container1">     		
        <form name="riskIDelForm" action="riskIAction.do" method="post">
        	<input type="hidden" name="mode" value="mvlistp_insert"></input>
        	<input type="hidden" name="pro_id" value="${sessionScope.lastProId }"></input>
      		<table class="table-long" style="margin: 0 auto;">
      			<tfoot>
      				<tr>
      					<td>
      					<div class="align-left"><a href="#" class="button1"><span>취약성 평가 생성</span></a></div>
      					<div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
      					<option value="option2">Delete All</option></select-->
      					
      					<a href="riskIAction.do?mode=mvlistp_insertPage&alldata=Y" class="button"><span>모든정보보기</span></a>
      					<a href="#" class="button" onclick="javascript: mvlistpInsert()"><span>저장</span></a>
                        <a href="#" class="button" onclick="javascript: winClose()"><span>닫기</span></a></div></td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-long" style="margin: 0 auto;">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="30px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="35px"/>
							<col width="45px"/>
							<col width="75px"/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="40px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="80px"/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>	
				</colgroup>	
      			<thead>
      				<tr>
      					<td class="col-chk" rowspan="2"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" class="chkCursor"></input></td>
      					<td class="col-rowspanMid" rowspan="2">보안<br/>통제영역</td>
      					<td class="col-rowspanMid" rowspan="2">보안<br/>통제항목</td>
      					<td class="col-rowspanMid" rowspan="2">보안통제<br/>세부항목</td>
      					<td class="col-rowspanMid" rowspan="2">취약성<br/>평가항목</td>
      					<td class="col-rowspanMid" rowspan="2">모범관행</td>
      					<td colspan="2" class="lowPadding1">RA자산관리자</td>
      					<td class="col-rowspanMid" rowspan="2">취약성상세</td>
      					<td colspan="10" class="lowPadding1">연관자산유형</td>
      					<td></td>
      				</tr>
      				<tr>
      					<td class="lowPadding2 col-rowspanMid">구분</td>
      					<td class="lowPadding2 col-rowspanMid">가중치</td>
      					<td class="lowPadding2 col-alignCenter">H<br/>W</td>
      					<td class="lowPadding2 col-alignCenter">N<br/>W</td>
      					<td class="lowPadding2 col-alignCenter">보<br/>안</td>
      					<td class="lowPadding2 col-alignCenter">응<br/>용</td>
      					<td class="lowPadding2 col-alignCenter">상<br/>용</td>
      					<td class="lowPadding2 col-alignCenter">이<br/>동</td>
      					<td class="lowPadding2 col-alignCenter">저<br/>장</td>
      					<td class="lowPadding2 col-alignCenter">인<br/>적</td>
      					<td class="lowPadding2 col-alignCenter">건<br/>물</td>
      					<td class="lowPadding2 col-alignCenter">장<br/>비</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div class="scrollDIV" style="height: 335px;">
      		<table class="table-long" style="margin: 0 auto;">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="30px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col width="35px"/>
							<col width="41px"/>
							<col width="75px"/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="40px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col width="40px"/>
							<col width="45px"/>
							<col width="80px"/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width=""/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                   			<%--
                   			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
                   			 --%>
                   			<tr <c:if test="${status.index%2==0 }">class="odd"</c:if>>
                    			<td class="col-chk"><input type="checkbox" class="chkCursor" name="check" id="check${status.index+1 }"  value='${list.v_id}'></input></td>
                    			<td style="word-wrap:break-word">
                    				<div title="${list.ty_nm }">${list.ty_nm }</div>
                    			</td>
                    			<td style="word-wrap:break-word">
                    				<div title="${list.ts_nm }">${list.ts_nm }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.tss_nm }">${list.tss_nm }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.vp_item }">${list.vp_item }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.good_model }">${list.good_model }</div>
                    			</td>
                    			<td>
                    				<div title="${list.status_nm }">${list.status_nm }</div>
                    			</td>
                    			<td>
                    				<div title="${list.status_score }">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${list.status_score }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.v_detail }">${list.v_detail }</div>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA01==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA02==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA03==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA04==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA05==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA06==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA07==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA08==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA09==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
                    			<td class="col-alignCenter">
                    				<c:choose>
	                    				<c:when test="${list.connA10==1 }">
	                    					<img src="img/chkok.gif"></img>
	                    				</c:when>
	                    				<c:otherwise>
	                    					<img src="img/chkno.gif"></img>
	                    				</c:otherwise>
                    				</c:choose>
                    			</td>
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="20"  class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>